From: kaf24@firebug.cl.cam.ac.uk Date: Thu, 29 Sep 2005 16:39:33 +0000 (+0100) Subject: Move xenbus_suspend outside critical region with X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16769^2~4 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d2eef91db885a4be976ca9b2376df2f8eea7fcb6;p=xen.git Move xenbus_suspend outside critical region with interrupts disabled. Signed-off-by: Keir Fraser --- diff --git a/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c b/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c index ab8f32e531..bc596fbe09 100644 --- a/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c +++ b/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c @@ -96,6 +96,8 @@ static int __do_suspend(void *ignore) } #endif + xenbus_suspend(); + preempt_disable(); #ifdef CONFIG_SMP /* Take all of the other cpus offline. We need to be careful not @@ -140,8 +142,6 @@ static int __do_suspend(void *ignore) } #endif - xenbus_suspend(); - gnttab_suspend(); #ifdef __i386__